package com.googlecode.icecube.creation;


import java.util.List;

import javax.faces.model.SelectItem;

import com.googlecode.icefusion.ui.commons.BackingBeanForm;


/**
 * Manages selection examples.
 * 
 * @author Rainer Eschen
 * 
 */
public class Selection extends BackingBeanForm {

    private static final long serialVersionUID = -5875708338546314028L;

    Boolean selectBooleanCheckbox;

    List<String> selectManyCheckbox;

    List<String> selectManyListbox;

    List<String> selectManyMenu;

    String selectOneListbox;

    String selectOneMenu;

    String selectOneRadio;

    /**
     * Deliver common selection list elements.
     * 
     * @return list of items
     */
    public SelectItem[] getItems() {

        SelectItem[] items = new SelectItem[5];
        items[0] = new SelectItem("test1", "test1");
        items[1] = new SelectItem("test2", "test2");
        items[2] = new SelectItem("test3", "test3");
        items[3] = new SelectItem("test4", "test4");
        items[4] = new SelectItem("test5", "test5");
        return items;
    }

    public Boolean getSelectBooleanCheckbox() {
        return selectBooleanCheckbox;
    }

    public void setSelectBooleanCheckbox(Boolean selectBooleanCheckbox) {
        this.selectBooleanCheckbox = selectBooleanCheckbox;
    }

    public List<String> getSelectManyCheckbox() {
        return selectManyCheckbox;
    }

    public void setSelectManyCheckbox(List<String> selectManyCheckbox) {
        this.selectManyCheckbox = selectManyCheckbox;
    }

    public List<String> getSelectManyListbox() {
        return selectManyListbox;
    }

    public void setSelectManyListbox(List<String> selectManyListbox) {
        this.selectManyListbox = selectManyListbox;
    }

    public List<String> getSelectManyMenu() {
        return selectManyMenu;
    }

    public void setSelectManyMenu(List<String> selectManyMenu) {
        this.selectManyMenu = selectManyMenu;
    }

    public String getSelectOneListbox() {
        return selectOneListbox;
    }

    public void setSelectOneListbox(String selectOneListbox) {
        this.selectOneListbox = selectOneListbox;
    }

    public String getSelectOneMenu() {
        return selectOneMenu;
    }

    public void setSelectOneMenu(String selectOneMenu) {
        this.selectOneMenu = selectOneMenu;
    }

    public String getSelectOneRadio() {
        return selectOneRadio;
    }

    public void setSelectOneRadio(String selectOneRadio) {
        this.selectOneRadio = selectOneRadio;
    }
}
